package com.hiultra.archive.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hiultra.common.annotation.Excel;
import com.hiultra.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 借阅详情对象 arc_borrow_details
 * 
 * @author ls
 * @date 2022-07-28
 */
public class ArcBorrowDetails extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long detailId;

    /** 借阅主表 */
    @Excel(name = "借阅主表")
    private Long borrowId;

    /** 档案id */
    @Excel(name = "档案id")
    private Long archiveId;

    /** 实际借阅时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "实际借阅时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date realBorrowTime;

    /** 实际归还时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "实际归还时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date realBackTime;

    /** 0-正常,1-删除 */
    private Integer delflag;

    /** 0-未归还,1-归还 */
    @Excel(name = "0-未归还,1-归还")
    private Integer status;

    /** 题名*/
    private String archiveTitle;
    /** 档号*/
    private String archiveCode;
    /** 档案密级*/
    private int archiveSecretLevel;


    public String getArchiveTitle() {
        return archiveTitle;
    }

    public void setArchiveTitle(String archiveTitle) {
        this.archiveTitle = archiveTitle;
    }

    public String getArchiveCode() {
        return archiveCode;
    }

    public void setArchiveCode(String archiveCode) {
        this.archiveCode = archiveCode;
    }

    public int getArchiveSecretLevel() {
        return archiveSecretLevel;
    }

    public void setArchiveSecretLevel(int archiveSecretLevel) {
        this.archiveSecretLevel = archiveSecretLevel;
    }

    public void setDetailId(Long detailId)
    {
        this.detailId = detailId;
    }

    public Long getDetailId() 
    {
        return detailId;
    }
    public void setBorrowId(Long borrowId) 
    {
        this.borrowId = borrowId;
    }

    public Long getBorrowId() 
    {
        return borrowId;
    }
    public void setArchiveId(Long archiveId) 
    {
        this.archiveId = archiveId;
    }

    public Long getArchiveId() 
    {
        return archiveId;
    }
    public void setRealBorrowTime(Date realBorrowTime) 
    {
        this.realBorrowTime = realBorrowTime;
    }

    public Date getRealBorrowTime() 
    {
        return realBorrowTime;
    }
    public void setRealBackTime(Date realBackTime) 
    {
        this.realBackTime = realBackTime;
    }

    public Date getRealBackTime() 
    {
        return realBackTime;
    }
    public void setDelflag(Integer delflag) 
    {
        this.delflag = delflag;
    }

    public Integer getDelflag() 
    {
        return delflag;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("detailId", getDetailId())
            .append("borrowId", getBorrowId())
            .append("archiveId", getArchiveId())
            .append("realBorrowTime", getRealBorrowTime())
            .append("realBackTime", getRealBackTime())
            .append("updateTime", getUpdateTime())
            .append("delflag", getDelflag())
            .append("status", getStatus())
            .toString();
    }
}
